]> dgit.raspbian.org Git - gnome-shell.git/commit
extensionUtils: Add utility for setting the current extension
authorEvan Welsh <contact@evanwelsh.com>
Tue, 5 Jul 2022 16:09:26 +0000 (12:09 -0400)
committerEvan Welsh <contact@evanwelsh.com>
Wed, 6 Jul 2022 17:40:44 +0000 (13:40 -0400)
commit61eef2fb9bd6f0e3e94ef26a349ecb2e29207156
tree8f6601a5cfcc99985643e35fe70e25d4bba37474
parent71765a10566df07502f7fcb781b554298860fb77
extensionUtils: Add utility for setting the current extension

ES modules do not allow exports to be overriden, in anticipation
of the ESM port add a `setCurrentExtension` utility which will
throw if used in the shell. This is tested using a conditional
import of Main.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2363>
js/dbusServices/extensions/extensionPrefsDialog.js
js/misc/extensionUtils.js